<?php get_header(); ?>

  <table width="100%"><tbody><tr><td width="1%">

	<?php if (have_posts()) : $full_post_tstamp = 4 * 24 * 60 * 60; /* 4 days */ ?>
	<?php $today_tstamp = date('U'); ?>

    <div class="posts">

	<?php while (have_posts()) : the_post(); ?>

	<?php $post_tstamp = get_the_time('U'); ?>
	<?php $full_post = ($today_tstamp - $full_post_tstamp < $post_tstamp); ?>
        <div class="post<?php echo ($full_post)? " full-post" : "";?>" id="post-<?php the_ID(); ?>">
          <div class="header">
          <table><tbody><tr>
            <td width="1%"><div class="author"><a class="author" href="<?php echo get_author_posts_url($authordata->ID); ?>" title="Written by <?php echo get_the_author(); ?>"><img alt="<?php echo get_the_author(); ?>" class="author" src="<?php if(function_exists('jaybo_profile_get_user_icon')) echo jaybo_profile_get_user_icon($post->post_author); ?>" /></a></div></td>
            <td><div class="meta">
              <h2 class="post_title"><a class="post_title" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
              <div class="post_categories"><?php the_category(','); ?></div>
              <div class="post_date"><?php the_time('F jS, Y') ?> at <? the_time('g:ia'); ?> &mdash; <?php comments_number('No Comments', '1 Comment', '% Comments'); ?></div>
              </div>
            </td>
          </tr></tbody></table>
          </div>
          <div class="entry">
            <?php 
              if ($full_post) { the_content(); ?><div class="comments"><?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></div><?php } 
              else {  the_excerpt(); } ?>
          </div>
         <?php edit_post_link('<strong>Edit</strong>', '<div class="edit">', '</div>'); ?>
        </div>

		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
			<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
		</div>

    </div> <!-- end posts -->

	<?php else : ?>

		<h2 class="center">Not Found</h2>
		<p class="center">Sorry, but you are looking for something that isn't here.</p>
		<?php include (TEMPLATEPATH . "/searchform.php"); ?>

	<?php endif; ?>

  </td><td>
  <?php get_sidebar("right"); ?>
  </td></tr></tbody></table> <!-- end content -->


<?php get_footer(); ?>
